package com.xpf.service.status.enums;

public enum BpmInstanceStatus {
    SUBMITTED("提交", false),
    RUNNING("运行中", false),
    SUSPENDED("暂停", false),
    COMPLETED("完结(一般是通过)", true),
    TERMINATED("终止(一般是拒绝)", true),
    CANCELED("取消(一般是发起人撤销)", true),
    UN_KNOWN("匹配出错, 未知类型", true);

    private final String desc;
    private final boolean ended;

    public String getDesc() {
        return this.desc;
    }

    public boolean isEnded() {
        return this.ended;
    }

    private BpmInstanceStatus(String desc, boolean ended) {
        this.desc = desc;
        this.ended = ended;
    }
}

